import { request, config} from 'utils'

const { api } = config 
const { mouldList,deleteMould,newMould,infoMould,updateMould,codeList,newCode,changeCode } = api

export async function mouldList1 (params) {
	return request({
		url:mouldList,
		method:'post',
		data:params
	})
}

export async function deleteMould1 (params) {
	return request({
		url:deleteMould,
		method:'post',
		data:params
	})
}

export async function newMould1 (params) {
	return request({
		url:newMould,
		method:'post',
		data:params
	})
}

export async function infoMould1 (params) {
	return request({
		url:infoMould,
		method:'post',
		data:params
	})
}

export async function updateMould1 (params) {
	return request({
		url:updateMould,
		method:'post',
		data:params
	})
}

export async function codeList1 (params){
	return request({
		url:codeList,
		method:'post',
		data:params
	})
}

export async function newCode1 (params){
	return request({
		url:newCode,
		method:'post',
		data:params
	})
}

export async function changeCode1 (params){
	return request({
		url:changeCode,
		method:'post',
		data:params
	})
}